#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) Huoty, All rights reserved
# Author: Huoty <sudohuoty@163.com>
# CreateTime: 2020-06-09 17:05:01

import uuid


class UniqueIdGen(object):

    namespace = uuid.UUID("c875fb30-a8a8-402d-a796-225a6b065cad")

    def __call__(self, name):
        return uuid.uuid3(self.namespace, name).hex


get_unique_id = UniqueIdGen()


print(get_unique_id("hello"))
